package com.cipe.cmrs.controllers.reports;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.cipe.cmrs.model.Paymentrequest;

/**
 * This class is used for getting the parameter entry popup page form for getting the Payment Request report. 
 * @author Kapila Rajbhandari
 *
 */
@Controller
@RequestMapping("/secure/showPaymentRequestForm.do")
public class PaymentRequestReportController {
	protected static final String COMMAND_NAME = "paymentRequest";
	private static final String FORM_VIEW = "reportForms/paymentRequestReportForm";
	
	@RequestMapping(method = RequestMethod.GET)
    protected ModelAndView getFormView(@ModelAttribute(COMMAND_NAME) Paymentrequest command, HttpServletRequest request) {
        return new ModelAndView(FORM_VIEW).addAllObjects(getReferenceData(command, request));
    }
	
	protected Map<String, Object> getReferenceData(Paymentrequest command, HttpServletRequest request) {
        return new HashMap<String, Object>();
    }

}
